<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2022-04-26
  Time: 9:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" isErrorPage="true" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%
        // _jspService
        // 表达式脚本 out.print(表达式);
        //普通脚本
        //request.getSession();
        pageContext.getPage();
        request.getSession();
        //session.getServletContext();
        application.getAttribute("a");
        //---
        page.toString();
        config.getInitParameter("encoding");
        //--
        out.write("<h3>你好</h3>");
        response.setContentType("text/html;charset=utf-8");
        //直接可以写在脚本中。
        //exception.getMessage(); // exception = null;
    %>

    <a href="scopes.jsp">测试范围</a>
    <br>
    <a href="sameSession.jsp">同一会话</a>
</body>
</html>
